cp arch/x86_64/config.h include/config.h
make -f Makefile.x86 all

mkdir isofiles
mkdir isofiles/boot/
mkdir isofiles/boot/grub/
cp x86/stage2_eltorito isofiles/boot/grub
cp x86/kernel isofiles/kernel
cp x86/menu.lst isofiles/boot/grub
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o x86/image.iso isofiles
rm -r isofiles

qemu -cdrom x86/image.iso -usb -m 128 -serial stdio -net nic,model=ne2k_pci -net user


